package com.googlecode.imule.redundant;

/**
 * DataManager: Manage the data in raw format
 * @author Owen Phelan
 *
 */

import com.apple.dnssd.*;
//import com.googlecode.imule.redundant.Manifest;

import java.util.Hashtable;

public class DataManager {

	public String[] status;
	public Manifest[] manifest;
	public String values;
	private Hashtable<String, Manifest> appliances;
	
	/**
	 * ManifestList: holds a reference to the manifests of 
	 * the different services
	 */
	public void ManifestList(){
		appliances = new Hashtable<String, Manifest>();
		
		//Place each status message and each manifest into the hash table
		for(int i=0; i<=9; i++){
			appliances.put(status[i], manifest[i]);
		}	
	}
	
	/**
	 * Convert to RDF triples 
	 * (Subject, Predicate, Object)
	 */
	public String convertToRDF(String s, String p, String o){
		return null;//maybe make an RDF converter for here if needed....
	}
	
	/**
	 * Print the manifest to a string
	 * @return
	 */
	public String printManifestToString(){
		String x = appliances.toString();
		return x;
	}
}
